package cn.tedu.pojo.ioc;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

@Component//spring提供的，用来ioc
//@Component("a") 自己制定bean的名字，a
//@Controller//spring提供的，用来ioc
//@Service//spring提供的，用来ioc
public class User {
    public void get(){
        System.out.println(123);
    }
}
